﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="pNegocioCambiarEstadoPropio.aspx.cs" Inherits="pNegocioCambiarEstadoPropio" %>

<%@ MasterType VirtualPath="~/Site.master" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHiddenField" TagPrefix="dx1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script type="text/javascript">
    // <![CDATA[

        function txtNegocioCuitValidar(s, e) {
            var cuit = e.value;
            if (cuit == null || cuit == "") {
                e.isValid = false;
                return;
            }

            var digits = "0123456789";
            for (var i = 0; i < cuit.length; i++) {
                if (digits.indexOf(cuit.charAt(i)) == -1) {
                    e.isValid = false;
                    break;
                }
            }

            if (cuit.length < 11)
                e.isValid = false;

        }

        function txtNegocioNumeroValidar(s, e) {
            var numero = e.value;
            if (numero == null || numero == "") {
                e.isValid = false;
                return;
            }

            var digits = "0123456789";
            for (var i = 0; i < numero.length; i++) {
                if (digits.indexOf(numero.charAt(i)) == -1) {
                    e.isValid = false;
                    break;
                }
            }
        }


        function txtCodigoPostalValidar(s, e) {
            var numero = e.value;
            if (numero == null || numero == "") {
                e.isValid = false;
                return;
            }

            if (numero.length < 4) {
                e.isValid = false;
                return;
            }

            var digits = "0123456789";
            for (var i = 0; i < numero.length; i++) {
                if (digits.indexOf(numero.charAt(i)) == -1) {
                    e.isValid = false;
                    break;
                }
            }



        }
        

    // ]]>
    </script>
    <style type="text/css">
        .style3
        {
            width: 48px;
        }
        .style6
        {
        }
        .style7
        {
    }
    .style8
    {
        width: 100%;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div id="DivTop" style="float: inherit; vertical-align: top; width: 100%">
        <dx:ASPxRoundPanel ID="rpAltaNegocio" runat="server" HeaderText="Datos de tu Negocio"
            Width="350px" BackColor="White">
            <HeaderStyle BackColor="#FF9D3C" Font-Bold="False" Font-Names="Gill Sans MT" Font-Size="Large"
                ForeColor="White">
                <BorderBottom BorderStyle="None" />
            </HeaderStyle>
            <TopLeftCorner Height="5px" Url="~/Images/ASPxRoundPanel/723238519/TopLeftCorner.png"
                Width="5px">
            </TopLeftCorner>
            <NoHeaderTopLeftCorner Height="5px" Url="~/Images/ASPxRoundPanel/723238519/NoHeaderTopLeftCorner.png"
                Width="5px">
            </NoHeaderTopLeftCorner>
            <TopRightCorner Height="5px" Url="~/Images/ASPxRoundPanel/723238519/TopRightCorner.png"
                Width="5px">
            </TopRightCorner>
            <NoHeaderTopRightCorner Height="5px" Url="~/Images/ASPxRoundPanel/723238519/NoHeaderTopRightCorner.png"
                Width="5px">
            </NoHeaderTopRightCorner>
            <BottomRightCorner Height="5px" Url="~/Images/ASPxRoundPanel/723238519/BottomRightCorner.png"
                Width="5px">
            </BottomRightCorner>
            <BottomLeftCorner Height="5px" Url="~/Images/ASPxRoundPanel/723238519/BottomLeftCorner.png"
                Width="5px">
            </BottomLeftCorner>
            <PanelCollection>
                <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                    <table cellpadding="0" cellspacing="5" id="tablaNegocio" width="350px">
                        <tr>
                            <td align="center" class="style7" colspan="2">
                                <dx:ASPxLabel ID="lblActualizacionOK" runat="server" Font-Bold="True" 
                                    ForeColor="#006600" Text="estado" Font-Size="Small">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td align="char" class="style7" colspan="2">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style7">
                                &nbsp;<dx:ASPxLabel ID="ASPxLabel1" runat="server" 
                                    AssociatedControlID="txtNegocioNombre" 
                                    CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                    CssPostfix="Office2003Olive" Font-Names="Gill Sans MT" Font-Size="Small" 
                                    Text="Nombre">
                                </dx:ASPxLabel>
                            </td>
                            <td class="style3">
                                <dx:ASPxTextBox ID="txtNegocioNombre" runat="server" 
                                    CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                    CssPostfix="Office2003Olive" Height="24px" 
                                    SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" TabIndex="1" 
                                    Width="170px" ClientEnabled="False">
                                    <ValidationSettings ErrorText="Debe escribir la razón social">
                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                        <RequiredField ErrorText="Campo obligatorio" IsRequired="True" />
                                    </ValidationSettings>
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="style7">
                                <dx:ASPxLabel ID="ASPxLabel2" runat="server" CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css"
                                    CssPostfix="Office2003Olive" Font-Names="Gill Sans MT" Font-Size="Small" Text="Razon social">
                                </dx:ASPxLabel>
                            </td>
                            <td class="style3">
                                <dx:ASPxTextBox ID="txtNegocioRazonSocial" runat="server" CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css"
                                    CssPostfix="Office2003Olive" Height="24px" SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css"
                                    Width="170px" TabIndex="2" ClientEnabled="False">
                                    <ValidationSettings ErrorText="Debe escribir la razón social">
                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                        <RequiredField IsRequired="True" ErrorText="Campo obligatorio" />
                                    </ValidationSettings>
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="style7">
                                <dx:ASPxLabel ID="ASPxLabel19" runat="server" CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css"
                                    CssPostfix="Office2003Olive" Font-Names="Gill Sans MT" Font-Size="Small" Text="CUIT">
                                </dx:ASPxLabel>
                            </td>
                            <td class="style3">
                                <dx:ASPxTextBox ID="txtNegocioCuit" runat="server" CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css"
                                    CssPostfix="Office2003Olive" Height="24px" SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css"
                                    Width="90px" ClientInstanceName="txtNegocioCuit" MaxLength="11" 
                                    TabIndex="3" ClientEnabled="False">
                                    <ClientSideEvents Validation="txtNegocioCuitValidar" />
                                    <ValidationSettings ErrorText="Debe escribir solo los números">
                                        <RegularExpression ErrorText="El CUIT debe ser de 11 dígitos" ValidationExpression=".{10,}" />
                                        <RequiredField ErrorText="Debe escribir solo los números" />
                                    </ValidationSettings>
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="style7">
                                <dx:ASPxLabel ID="ASPxLabel6" runat="server" CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css"
                                    CssPostfix="Office2003Olive" Font-Names="Gill Sans MT" Font-Size="Small" Text="Email ">
                                </dx:ASPxLabel>
                            </td>
                            <td class="style3">
                                <dx:ASPxTextBox ID="txtNegocioEmail" runat="server" CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css"
                                    CssPostfix="Office2003Olive" Height="24px" SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css"
                                    Width="170px" TabIndex="4" ClientEnabled="False">
                                    <ValidationSettings ErrorText="Debe escribir un email válido">
                                        <RegularExpression ErrorText="Debe escribir un Email válido" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                                        <RequiredField IsRequired="True" ErrorText="Debe escribir un Email válido" />
                                    </ValidationSettings>
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="style7">
                                <dx:ASPxLabel ID="ASPxLabel7" runat="server" CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css"
                                    CssPostfix="Office2003Olive" Font-Names="Gill Sans MT" Font-Size="Small" Text="Teléfono">
                                </dx:ASPxLabel>
                            </td>
                            <td class="style3">
                                <dx:ASPxTextBox ID="txtNegocioTelefono" runat="server" CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css"
                                    CssPostfix="Office2003Olive" Height="24px" SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css"
                                    Width="170px" TabIndex="5" ClientEnabled="False">
                                    <ValidationSettings ErrorText="Campo obligatorio">
                                        <RegularExpression ErrorText="Teléfono inválido" ValidationExpression=".{6,}" />
                                        <RequiredField IsRequired="True" ErrorText="Campo obligatorio" />
                                    </ValidationSettings>
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                        <td colspan="2" align="center" width="100%">
                        <table align="center">
                            <tr>
                                                     <td align="center">
                                                         &nbsp;</td>
                                <td align="right" class="style6">
                                    <dx:ASPxButton ID="btnRegresar" runat="server" OnClick="btnSiguiente_Click" 
                                        TabIndex="15" ToolTip="Regresar" Width="75px" 
                                        CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" CssPostfix="Office2003Olive" 
                                        Font-Bold="True" 
                                        SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" 
                                        Text="Regresar" RightToLeft="True">
                                        <Image Url="~/Images/Iconos/Button-Back-icon.png" Width="50px">
                                            <SpriteProperties Left="0px" />
                                        </Image>
                                    </dx:ASPxButton>
                                </td>
                                 <td align="left">
                                    <dx:ASPxButton ID="btnGuardar" runat="server" 
                                        TabIndex="15" ToolTip="Aceptar" Width="75px" 
                                         ClientInstanceName="btnGuardar" AutoPostBack="False" 
                                         CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" CssPostfix="Office2003Olive" 
                                         Font-Bold="True" SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" 
                                         Text="Aceptar">
                                        <ClientSideEvents Click="function(s, e) {
	popUpOk.Show();
}" />
                                        <Image Url="~/Images/Iconos/check.png" Width="50px">
                                            <SpriteProperties Left="10px" />
                                        </Image>
                                    </dx:ASPxButton>
                                </td>
       
                                             <td align="right" class="style6">
                                                 &nbsp;</td>
                               
                            </tr>
                        </table>
                        </td>
                        </tr>
                        <tr>
                            <td align="center" class="style6" colspan="2">
                                <dx:ASPxLabel ID="lblError" runat="server" Font-Bold="True" ForeColor="Red" 
                                    Text="ERROR" Visible="False">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="style6" colspan="2">
                                <dx:ASPxLabel ID="lblIdNegocio" runat="server" Font-Bold="True" ForeColor="Red" 
                                    Text="0" Visible="False">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                    </table>
                    
                </dx:PanelContent>
            </PanelCollection>
            <Border BorderColor="#8B8B8B" BorderStyle="Solid" BorderWidth="1px" />
        </dx:ASPxRoundPanel>
        <dx:ASPxPopupControl ID="popUpOk" runat="server" 
                        CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                        CssPostfix="Office2003Olive" EnableHotTrack="False" 
                        LoadingPanelText="Cargando&amp;hellip;" 
                        
            SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" 
            ClientInstanceName="popUpOk" HeaderText="Confirmar Actualización" Modal="True" 
            Width="239px" DisappearAfter="700" PopupHorizontalAlign="WindowCenter" 
            PopupVerticalAlign="WindowCenter">
                        <LoadingPanelImage Url="~/App_Themes/Office2003Olive/Web/Loading.gif">
                        </LoadingPanelImage>
                        <HeaderStyle BackColor="#FF9D3C">
                        <Paddings PaddingRight="6px" />
                        </HeaderStyle>
                        <ContentCollection>
                            <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                                <table class="style8">
                                    <tr>
                                        <td align="center">
                                            <dx:ASPxLabel ID="ASPxLabel21" runat="server" 
                                                CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                CssPostfix="Office2003Olive" Font-Bold="False" Font-Names="Gill Sans MT" 
                                                Font-Size="Medium" Text="Los datos serán actualizados">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <dx:ASPxLabel ID="ASPxLabel24" runat="server" 
                                                CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                CssPostfix="Office2003Olive" Font-Bold="False" Font-Names="Gill Sans MT" 
                                                Font-Size="Medium" Text="¿Desea continuar?">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table align="center">
                                                <tr>
                                                    <td align="left">
                                                        &nbsp;</td>
                                                    <td align="right" class="style6">
                                                        <dx:ASPxButton ID="btnPopCerrar" runat="server" AutoPostBack="False" 
                                                            ClientInstanceName="btnPopCerrar" 
                                                            CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" CssPostfix="Office2003Olive" 
                                                            Font-Bold="True" 
                                                            SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" TabIndex="15" 
                                                            Text="Regresar" ToolTip="Regresar" Width="75px" RightToLeft="True">
                                                            <ClientSideEvents Click="function(s, e) {
	popUpOk.Hide();
}" />
                                                            <Image Url="~/Images/Iconos/Button-Back-icon.png" Width="50px">
                                                                <SpriteProperties Left="0px" />
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td align="left">
                                                        <dx:ASPxButton ID="btnPopConfirmar" runat="server" OnClick="btnPopConfirmar_Click" 
                                                            TabIndex="15" ToolTip="Aceptar" Width="75px" 
                                                            ClientInstanceName="btnPopConfirmar" 
                                                            CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" CssPostfix="Office2003Olive" 
                                                            Font-Bold="True" SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" 
                                                            Text="Aceptar">
                                                            <ClientSideEvents Click="function(s, e) {
	popUpOk.Hide();
}" />
                                                            <Image Url="~/Images/Iconos/check.png" Width="50px">
                                                                <SpriteProperties Left="10px" />
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td align="right" class="style6">
                                                        &nbsp;</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </dx:PopupControlContentControl>
                        </ContentCollection>
                    </dx:ASPxPopupControl>
    </div>
</asp:Content>
